package com.iretailer.report.analyze.device.face.horizon.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;
import java.time.OffsetDateTime;

/**
 * @Auther: xjw
 * @Date: 2019/8/6 0006 10:22
 * @Description:
 */
public class FlowStats {

    private Long timeStamp;

    private LocalDateTime dateTime;

    private int lineId;
    //  线类型, 0 表示进出线；1 表示途径线
    private int lineType;
    // 统计时长
    private int interval;
    private int totalNumber;
    // 进线人次
    private int inNumber;
    // 出线人次
    private int outNumber;

    public LocalDateTime getDateTime() {
        return LocalDateTime.ofEpochSecond(this.getTimeStamp(), 0, OffsetDateTime.now().getOffset());
    }

    public Long getTimeStamp() {
        return timeStamp;
    }

    public void setTimeStamp(Long timeStamp) {
        this.timeStamp = timeStamp;
    }

    public int getLineId() {
        return lineId;
    }

    public void setLineId(int lineId) {
        this.lineId = lineId;
    }

    public int getLineType() {
        return lineType;
    }

    public void setLineType(int lineType) {
        this.lineType = lineType;
    }

    public int getInterval() {
        return interval;
    }

    public void setInterval(int interval) {
        this.interval = interval;
    }

    public int getTotalNumber() {
        return totalNumber;
    }

    public void setTotalNumber(int totalNumber) {
        this.totalNumber = totalNumber;
    }

    public int getInNumber() {
        return inNumber;
    }

    public void setInNumber(int inNumber) {
        this.inNumber = inNumber;
    }

    public int getOutNumber() {
        return outNumber;
    }

    public void setOutNumber(int outNumber) {
        this.outNumber = outNumber;
    }
}
